package cn.ecut.service;

import cn.ecut.mapper.ContractMapper;
import cn.ecut.model.Contract;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author JMS
 * @date 2020/12/27 14:17
 */
@Service
public class ContractService {
    @Autowired
    ContractMapper contractMapper;
    public  int insertContract(Contract contract) {
        return  contractMapper.insertContract( contract);
    };
    public Contract getContractInfo(String username){
        return contractMapper.getContractInfo(username);
    }
}
